﻿@model Tau.ViewModels.ImageList
@{
    ViewBag.Title = "Index";
}

<h2>Images &nbsp; &nbsp; <a href="#" class="addNew" onclick="popupAddNew();"> + add new image</a></h2>


<br />
<div id="addNew" title="Add New Image" style="display:none">
    @Html.Partial("AddNewImage", new Tau.ViewModels.AddImage { AddingImage = new Tau.Model.Image(), Mode = Tau.ViewModels.DisplayMode.Edit })
</div>

<div id="imageList">
    @Html.Partial("ImageList", Model)
</div>

<script type="text/javascript" charset="utf-8">
    function popupAddNew() {

        $("#addNew").dialog({
            autoOpen: true,
            height: 150,
            width: 350,
            modal: true
        });
    }
        
    </script>